package com.company.project.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.project.mapper.UserMapper;
import com.company.project.pojo.user.User;
import com.company.project.pojo.user.UserDTO;
import com.company.project.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2019-08-09
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    /**
    用户列表
     */
    @Override
    public IPage<UserDTO> getUserList(Page page) {
        IPage<UserDTO> pageInfo = userMapper.getUserList(page);

        return pageInfo;
    }
}
